//
//  MHDataHelper.h
//  NewChat
//
//  Created by 马欢 on 16/3/4.
//  Copyright © 2016年 蓝鸥. All rights reserved.
//

#import <Foundation/Foundation.h>
@class FindModel;
@class ReplyModel;
typedef void(^SUCCESS)(NSMutableArray *array);
typedef void (^TEMP)(FindModel * temp);
typedef void(^NUMBER)(NSInteger number);

@protocol MHDataHelperDelegate <NSObject>

-(void)hotTVreload;
@end

@interface MHDataHelper : NSObject

//获取单例对象
+(instancetype)shareDataHelper;
@property (nonatomic,strong)NSString *startTime;
@property (nonatomic,assign)NSInteger pushIndex;
@property (nonatomic,assign)id<MHDataHelperDelegate>hotTVReloadDelegate;
@property (nonatomic,strong)NSMutableArray *allSongsArray;//歌曲

-(void)getData;
-(void)requestHotArraydidFinish:(TEMP)success;
-(void)requestRecentlyArraydidFinish:(SUCCESS)success;
-(void)requestHotchatArrayWithArrayType:(NSString *)arrayType didFinish:(SUCCESS)success;
-(void)requestReplyArrayWithOnlyID:(NSString *)onlyID didFinish:(SUCCESS)success;

-(void)requestAllSongsWithAllLike:(NSString *)allLike didFinished:(SUCCESS)success;
-(void)requestAllSongsWithGuess:(NSString *)guessS didFinished:(SUCCESS)success;

-(void)getNumbersOfReplyWithOnlyID:(NSString *)onlyID didFinished:(NUMBER)numbers;
-(void)requestAllOnlineUsersDidFinished:(SUCCESS)success;
-(void)NumbersOfFindModelInTopicdidFinished:(SUCCESS)success;
-(void)getNumbersOfFindModelInTopicWithArrayType:(NSString *)arrayType didFinished:(NUMBER)numbers;
/**
 *  用户收藏的话题
 *
 *  @param myCollect 收藏的话题
 */

-(void)requestTopicOfMyCollectdidFinished:(SUCCESS)myCollect;

/**
 *  查询的用户的所有回复
 *
 *  @param personalID 要查询的用户的ID
 *  @param success    所有的回复
 */

-(void)requestAllHerReplysWith:(NSString *)personalID didFinished:(SUCCESS)success;

/**
 *  根据ID查询的用户 发布的所有话题
 *
 *  @param personalID 要查询的用户的ID
 *  @param success    话题数组
 */
-(void)requestAllHerTopicWith:(NSString *)personalID didFinished:(SUCCESS)success;
-(void)requestAllMyAttentionTopicdidFinished:(SUCCESS)success;
@end
